/**
 * @filename:AutoPageSpanDao Course
 * @project constract  V1.0
 * Copyright(c) 2018  Co. Ltd. 
 * All right reserved. 
 */
package com.znufe.exam.repository;

import java.util.List;

import com.znufe.exam.viewmodel.student.autopage.AutoPageRequestVm;
import org.apache.ibatis.annotations.Mapper;
import com.znufe.exam.domain.AutoPageSpan;
import org.apache.ibatis.annotations.Param;

/**   
 *  
 * @Description:  自动翻页设置表——DAO
 * @Author:          
 * @CreateDate:   Course
 * @Version:      V1.0
 *    
 */
@Mapper
public interface AutoPageSpanMapper {
	
	AutoPageSpan selectByPrimaryKey(Integer id);
	
	int deleteByPrimaryKey(Integer id);
	
	int insertSelective(AutoPageSpan autoPageSpan);
	
	int updateByPrimaryKeySelective(AutoPageSpan autoPageSpan);
	
	List<AutoPageSpan> queryAutoPageSpanList(AutoPageSpan autoPageSpan);

    AutoPageSpan selcetByIds(AutoPageRequestVm autoPageRequestVm);

    AutoPageSpan selectByClassCoursePaperId(@Param("classId") Integer classId,
                                            @Param("courseId") Integer courseId,
                                            @Param("examPaperId") Integer examPaperId);
}
